package com.htfyun.hardware.leds;

public enum BreatheLedType {

    left("left"),//左灯
    right("right"),//右灯

    ;
    final String name;

    private int brightnessLevel;
    private int maxBrightness;
    private int minBrightness;
    private int limitBrightness;
    private int stepBrightness;
    private int ledNumbers;

    BreatheLedType(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getPathOfModel() {
        return String.format("/sys/class/htfyun_bln-%s/model", name);
    }

    public String getPathOfLight() {
        return String.format("/sys/class/htfyun_bln-%s/light", name);
    }

    public String getPathOfConfig() {
        return String.format("/sys/class/htfyun_bln-%s/config", name);
    }

    public String getPathOfOffLedInSuspend() {
        return String.format("/sys/class/htfyun_bln-%s/off_led_in_suspend", name);
    }

    public int getBrightnessLevel() {
        return brightnessLevel;
    }

    public void setBrightnessLevel(int brightnessLevel) {
        this.brightnessLevel = brightnessLevel;
    }

    public int getMaxBrightness() {
        return maxBrightness;
    }

    public void setMaxBrightness(int maxBrightness) {
        this.maxBrightness = maxBrightness;
    }

    public int getMinBrightness() {
        return minBrightness;
    }

    public void setMinBrightness(int minBrightness) {
        this.minBrightness = minBrightness;
    }

    public int getLimitBrightness() {
        return limitBrightness;
    }

    public void setLimitBrightness(int limitBrightness) {
        this.limitBrightness = limitBrightness;
    }

    public int getStepBrightness() {
        return stepBrightness;
    }

    public void setStepBrightness(int stepBrightness) {
        this.stepBrightness = stepBrightness;
    }

    public int getLedNumbers() {
        return ledNumbers;
    }

    public void setLedNumbers(int ledNumbers) {
        this.ledNumbers = ledNumbers;
    }

    @Override
    public String toString() {
        return "name : " + name
                + ", brightnessLevel : " + brightnessLevel
                + ", maxBrightness : " + maxBrightness
                + ", limitBrightness : " + limitBrightness
                + ", minBrightness : " + minBrightness
                + ", stepBrightness : " + stepBrightness
                + ", ledNumbers : " + ledNumbers
                ;
    }
}
